package org.example;

public class Main {
    public static void main(String[] args) {
        var plus = new Token(Token.PLUS, "+");
        var one = new Token(Token.PLUS, "1");
        var two = new Token(Token.PLUS, "2");

        var tree1 = new AST(plus);
        tree1.addChild(new AST(one));
        tree1.addChild(new AST(two));
        System.out.println(tree1.toStringTree());

        var tree2 = new AST();
        tree2.addChild(new AST(one));
        tree2.addChild(new AST(two));
        System.out.println(tree2.toStringTree());
    }
}